<style>
    #classify-add {
        padding: 20px 25px 25px 0;
    }
</style>
<div class="layui-fluid" id="classify-add">
    <form class="layui-form" action="" lay-filter="classify-add-form">
        <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">分类编号：</label>
            <div class="layui-input-block">
                <input type="text" name="billstdNo" minlength="2" maxlength="6" lay-verify="range|billstdNo"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">分类名称：</label>
            <div class="layui-input-block">
                <input type="text" name="billstdNm" minlength="2" maxlength="60"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <!--<div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">runPrg：</label>
            <div class="layui-input-block">
                <input type="text" name="runPrg" minlength="2" maxlength="60"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">callPrgnm：</label>
            <div class="layui-input-block">
                <input type="text" name="callPrgnm" minlength="2" maxlength="60"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
-->




        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <textarea name="" maxlength="100" class="layui-textarea" readonly="readonly"> </textarea>
            </div>
        </div>
        <div class="layui-form-item febs-hide">
            <button class="layui-btn" lay-submit="" lay-filter="classify-add-form-submit" id="submit"></button>
            <button type="reset" class="layui-btn" id="reset"></button>
        </div>
    </form>
</div>

<script>
    layui.use(['febs', 'form', 'validate', 'xmSelect'], function () {
        let $ = layui.$,
            febs = layui.febs,
            layer = layui.layer,
            form = layui.form,
            xmSelect = layui.xmSelect,
            validate = layui.validate;


        form.verify(validate);
        form.render();


        form.on('submit(classify-add-form-submit)', function (data) {
            febs.post(ctx + 'classify/add', data.field, function () {
                layer.closeAll();
                febs.alert.success('新增流程成功');
                $('#febs-classify').find('#query').click();
            });
            return false;
        });
    });
</script>